﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<MensUnoShop.Models.Specification>" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Spec
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div id="main-content" class="hastable">
	<div class="title title-spacing">
		<h2>商品規格編輯</h2>
			編輯商品規格資料
	</div>
    <%using (Html.BeginForm("../Product/Spec", "Product", FormMethod.Post, new { @class = "shBox", enctype = "multipart/form-data" }))
    {%>
    <table cellspacing="0">
    <thead>        
		<tr>
			<td style="width:100px">規格標籤</td>
			<td style="width:300px; text-align: left" align="left" valign="middle">
            <span>目前：[<%:ViewData["SPtitle"]%>]<input type="button" value="修改" onclick="javascript:document.getElementById('SPtitletagid').style.display='block';" /></span><br />
            <span id="SPtitletagid" style="display:none">調整規格標籤：
            <%:Html.DropDownList("SPtitletagidList", (IEnumerable<SelectListItem>)ViewData["SPtitletagidList"])%>
            </span>
            <%:Html.Hidden("SPguid", ViewData["SPguid"])%><%:Html.Hidden("SPpdguid", ViewData["SPpdguid"])%>
            </td>
            <%--<td style="width:100px"></td>--%>
		</tr>  
        <tr>
			<td style="width:100px">規格庫存</td>
			<td style="width:300px; text-align: left" align="left" valign="middle"><%:Html.TextBox("SPstock", ViewData["SPstock"])%></td>
            <%--<td style="width:100px"></td>--%>
		</tr> 
		<%--<tr>
			<td style="width:100px">規格狀態</td>
			<td style="width:300px"><%:Html.CheckBox("MKstatus", ViewData["MKstatus"])%>(v表示上架狀態)</td>
            <td style="width:100px"></td>
		</tr>
        <tr>
			<td style="width:100px">最近修改時間</td>
			<td style="width:300px"><%:Html.Label((string)ViewData["MKlastmodify"])%></td>
            <td style="width:100px"></td>
		</tr>
		<tr>
			<td style="width:100px">新增時間</td>
			<td style="width:300px"><%:Html.Label((string)ViewData["MKdatein"])%></td>
            <td style="width:100px"></td>
		</tr>--%>
        <tr>
			<td style="width:100px"></td>
			<td style="width:300px">
            <%if (ViewData["PDguid"] == null)
              {%>
            <input type="submit" class="submit" value="儲存" />
            <%} %>
            <input type="button" value="規格列表" onclick="javascript:history.back();" />
            </td>
            <td style="width:100px"></td>
		</tr>
	</thead>
    <%--<%if (Model != null)
    {%>
    <tbody>            
        <tr>
            <td><%:Model.TITLE %></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>            
    </tbody>
    <%} %>--%>
    </table>
    <%} %>
    <br/><br/>            
</div>

</asp:Content>
